<div class="crumb-wrap">
            <div class="crumb-list"><i class="icon-font"></i><a href="<?=site_url('admini') ?>">首页</a><span class="crumb-step">&gt;</span><span class="crumb-name">权限管理</span></div>
        </div>
        <div class="result-wrap">
            <form name="myform" id="myform" method="post">
                <div class="result-title">
                    <div class="result-list">
                        <a href="<?=site_url('admini/power/create')?>"><i class="icon-font"></i>新增用户组</a>
                    </div>
                </div>
                <div class="result-content">
                    <table class="result-tab" width="100%">
                        <tr>
                            <th width="5%">编号</th>
                            <th>用户组</th>
                            <th>操作</th>
                        </tr>
                        <?php foreach($list as $k => $v): ?>
                        <tr>
                        	<td><?=$v['id']?></td>
                            <td><a href="javascript:void(0);"><?=$v['name']?></a></td>
                            <td>
                                <a class="link-update" href="<?=site_url('admini/power/update?pid='.$v['id'])?>">修改</a>
                                <a class="link-del" href="javascript:del_sort(<?=$v['id']?>)">删除</a>
                            </td>
                        </tr>
                        <?php endforeach;?>
                    </table>
                    <!-- <div class="list-page"> 2 条 1/1 页</div> -->
                </div>
            </form>
        </div>
<script>

    //删除
    function del_sort(id){
        layer.confirm('确定要删除这个分类以及该分类下的所有分类吗？', {
            icon:0,
            btn: ['删除','取消'], //按钮
            shade: false //不显示遮罩
        }, function(){
            $.post("<?=site_url('admini/power/delete')?>",{pid:id},function(res){
                if(res == 1){
                    location.reload(true);
                }else{
                    layer.alert(res,{
                        icon:2,
                    });
                }
            })
        });
    }

</script>